home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 20 / develop 20 code / Sound Components / MewLaw / MewLaw.r < prev    next >
Encoding:
Text File  |  1994-09-08  |  2.2 KB  |  72 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MewLaw.r
  3.  
  4.     Contains:    Sample sound decompression component resources
  5.  
  6.     Written by:    Kip Olson
  7.  
  8.     Copyright:    © 1994 by Apple Computer, Inc.
  9. */
  10.  
  11. #define UseExtendedThingResource    1                    // we are going to use the extended component resource
  12.  
  13. #include "SysTypes.r"
  14. #include "Types.r"
  15.  
  16. #define MewLawVersion        0x00010000                    // version of MewLaw component
  17. #define MewLawComponentID    128                            // resource ID for MewLaw component
  18.  
  19. #define k8BitRawIn            (1 << 0)                    // component description flags
  20. #define k8BitTwosIn            (1 << 1)
  21. #define k16BitIn            (1 << 2)
  22. #define kStereoIn            (1 << 3)
  23.  
  24. #define k8BitRawOut            (1 << 8)
  25. #define k8BitTwosOut        (1 << 9)
  26. #define k16BitOut            (1 << 10)
  27. #define kStereoOut            (1 << 11)
  28.  
  29. resource 'thng' (MewLawComponentID, purgeable) {        // component resource
  30.     'sdec',                                                // sound output component type
  31.     'ULAW',                                                // subtype of this component
  32.     'appl',                                                // manufacturer
  33.     cmpWantsRegisterMessage | k16BitIn|kStereoIn | k8BitRawOut|k16BitOut|kStereoOut, // component flags
  34.     kAnyComponentFlagsMask,                                // component flags mask
  35.     'proc',    MewLawComponentID,                            // code resource
  36.     'STR ',    MewLawComponentID,                            // component name
  37.     'STR ',    MewLawComponentID+1,                        // component description
  38.     'ICON',    MewLawComponentID,                            // component icon
  39.     MewLawVersion,                                        // component version
  40.     componentDoAutoVersion,                                // registration flags
  41.     0,                                                    // icon family ID
  42.     {    /* array ComponentPlatformInfo: 0 elements */    // platform
  43.     }
  44. };
  45.  
  46. resource 'STR ' (MewLawComponentID, purgeable) {        // component name
  47.     "µLaw 2:1"
  48. };
  49.  
  50. resource 'STR ' (MewLawComponentID+1, purgeable) {        // component description
  51.     "Converts µLaw compressed data into 16-bit linear samples."
  52. };
  53.  
  54. resource 'ICON' (MewLawComponentID, purgeable) {        // component icon
  55.     $"0000 0000 0000 0000 0000 0000 0000 0000"
  56.     $"0000 0000 0000 0000 0000 0000 01C0 0000"
  57.     $"0780 0000 0E00 0480 0C00 06C0 0C00 07C0"
  58.     $"0E00 0FE0 07FF FFE0 07FF FFE0 03FF FFC0"
  59.     $"03FF FF00 03FF FE00 03FF FE00 07FF FE00"
  60.     $"0770 FE00 0E70 E700 0E70 E700 0738 7380"
  61. };
  62.  
  63. resource 'vers' (1) {                                    // Finder version info
  64.     0x1,
  65.     0x0,
  66.     release,
  67.     0x0,
  68.     verUS,
  69.     "MewLaw 1.0",
  70.     "MewLaw 1.0\n© 1994 Apple Computer, Inc."
  71. };
  72.